package cn.tedu.spring.scope;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;


/**
 * singleton默认
 * prototype手动
 */
//@Scope(value = "singleton")
@Scope(value = "prototype")
@Component
public class Order {
    boolean login(){
        System.out.println("login");
        return false;
    }
}
